/**
 * 视频中心
 * 路由
 */
const express = require("express");
const router = express.Router();
const validateRequest = require("../middlewares/validationMiddleware"); // 验证器
const { createMulterConfig } = require("../modules/fileHandler");
// 检验器
const { list_validation, add_validation, update_validation, delete_validation } = require("../validators/videoCenter");
const { videoCenter_list, videoCenter_add, videoCenter_update, videoCenter_delete } = require("../controllers/videoCenter");
const upload = createMulterConfig();

router.get("/videoCenterList", list_validation, validateRequest, videoCenter_list); // 获取视频中心
router.post("/videoCenterAdd", add_validation, validateRequest, videoCenter_add); // 编辑视频中心
router.put("/videoCenterUpdate", update_validation, validateRequest, videoCenter_update); // 编辑视频中心
router.delete("/videoCenterDetele", delete_validation, validateRequest, videoCenter_delete); // 删除视频中心

module.exports = router;
